<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<style type="text/css">
* {
	margin: 0;
	padding: 0
}

#mainDiv {
	
	height: 480px;
	left: 50%;
	margin: -240px 0 0 -150px;
	position: absolute;
	top: 50%;
	width: 300px;
	font: bolder;
	font-family: "arial";
	font-size: "12px";
	
}
</style>
</h:head>
<h:body>
	<div id="mainDiv">
		<h:form id="form">
			<h:panelGrid styleClass="centered" width="300px">
				<f:facet name="header">
					<p:graphicImage value="imagem/logoFapi.png" />
				</f:facet>
				<h:outputLabel for="codigo" value="Código: " />
				<p:inputText id="codigo" value="#{loginControle.autenticacao.usuario}"
					required="true" label="codigo" size="35">
				</p:inputText>
				<p:message for="codigo" />
				<h:outputLabel for="senha" value="Senha: " />
				<p:inputText id="senha" value="#{loginControle.autenticacao.senha}"
					required="true" label="senha" size="35" />
				<p:message for="senha" />
				<p:growl id="loginMessage" />
				<f:facet name="footer">
					<p:commandButton value="Entrar" update="loginMessage" id="submit"
						action="#{loginControle.controlarLogin}" />
				</f:facet>
			</h:panelGrid>
		</h:form>
	</div>
	
</h:body>
</html>